(x_display_and_set_cursor): Check for the focus
authorGerd Moellmann <gerd@gnu.org>
Mon, 5 Feb 2001 15:47:07 +0000 (15:47 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 5 Feb 2001 15:47:07 +0000 (15:47 +0000)
frame's selected window instead of selected_window.

src/xterm.c

index 3d0b151370dad9997fa0e532acdc60a2a9258152..14a34bd2ecab2236bb7bd7beb7f86110e48301e3 100644 (file)
@@ -10877,8 +10877,8 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y)
     }
   else
     {
-      if (w != XWINDOW (selected_window)
-         || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame)
+      if (f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame
+         || w != XWINDOW (f->selected_window))
        {
          extern int cursor_in_non_selected_windows;